FROM registry.cn-hangzhou.aliyuncs.com/person_jiang/php:php83
WORKDIR /var/www/html
# 复制 Laravel 代码
COPY . /var/www/html
RUN composer install --no-dev --optimize-autoloader --no-interaction
RUN chown -R www-data:www-data /var/www/html \
    && chmod -R 755 /var/www/html/storage /var/www/html/bootstrap/cache
#命令
EXPOSE 9000
CMD ["php-fpm"]